import {ref,computed} from 'vue'
import {defineStore} from 'pinia'

export const useCarStore=defineStore('cart',()=>{
    const cartList=ref([])
    const addressLists=ref([
        {
            name: '小慕',
            phone: 18611111111,
            city: '北京 ',
            department:'海淀区西三环北路2号院北京理工大学国防科技园',
            houseNumber:'2号楼10号'
        },
        {
            name: '小可',
            phone: 18622222222,
            city: '北京',
            department:' 朝阳区北京工业大学',
            houseNumber:'3号楼303'
        }
    ])
    const currentAddress=ref('')
    return {cartList,addressLists,currentAddress}
})